<?php


namespace app\admin\validate;


use think\Validate;

class Person extends Validate
{
    /**
     * 验证规则
     * @var string[]
     */
    protected $rule = [
        'id' => 'require',
        'name' => 'require|max:50|min:1',
        'shopId' => 'require',
        'shopName' => 'require',
        'sex' => 'require',
        'age' => 'require',
        'stationId' => 'require',
        'positionId' => 'require',
        'stationName' => 'require',
        'phone' => 'require|number|max:11|min:11|mobile',
        'entryAt' => 'require',
        'status' => 'require',
        'birthday' => 'require',
        'probation' => 'require',
        'password' => 'require',
    ];
    /**
     * 场景
     * @var string[][]
     */
    protected $scene = [
        'create' => ['name','shopId','shopName','sex','age','stationId','positionId',
            'stationName','positionName','phone','entryAt','birthday','status','password'],
        'update' => ['id'],
    ];
    /**
     * @var array
     */
    protected $message=[

    ];

}